/*
 * Created on Sep 23, 2003
 * Filter
 * Local Projects Database
 * (c) 2003 eRomania Gateway Association
 *
 */
package ro.gateway.aida.usr.messaging;

/**
 * @author Mihai Postelnicu
 * Filter
 * Primary filter class, contains information about group or user filtering
 * used by all other filters
 *  *
 */
public class Filter
{
      protected long triggeredUser; //the user that will trigger the filter
      protected long triggeredGroup; //the group that will trigger the filter
      protected long alerterId;
      protected long id;

      public Filter( long id, long alerterId )
      {
            this.id = id;
            this.alerterId = alerterId;

      }

      public static final String PROJECT_FILTER = "alert containing project filters";
      public static final String ORG_FILTER = "alert concerning org filters";
      public static final String PERSON_FILTER = "alert containing person filters";


      /**
       * @return
       */
      public long getAlerterId()
      {
            return alerterId;
      }

      /**
       * @return
       */
      public long getId()
      {
            return id;
      }

      /**
       * @return
       */
      public long getTriggeredGroup()
      {
            return triggeredGroup;
      }

      /**
       * @return
       */
      public long getTriggeredUser()
      {
            return triggeredUser;
      }

      /**
       * @param l
       */
      public void setAlerterId( long l )
      {
            alerterId = l;
      }

      /**
       * @param l
       */
      public void setId( long l )
      {
            id = l;
      }

      /**
       * @param l
       */
      public void setTriggeredGroup( long l )
      {
            triggeredGroup = l;
      }

      /**
       * @param l
       */
      public void setTriggeredUser( long l )
      {
            triggeredUser = l;
      }

}
